package com.xing.crm.mapper;

import com.xing.crm.pojo.ProApply;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Mr.L
 * @version V1.0
 * @date 2021年08月09日 17:48
 */
@Repository
public interface ProApplyMapper {

	/**
	 * 功能描述: 

	 * @date 2021/8/11 11:10
	 * @param sid
	 * @return java.util.List<com.xing.crm.model.ProApply>
	 * */
	List<ProApply> getApplies(int sid);
	
	/**
	 * 功能描述: 

	 * @date 2021/8/11 10:06
	 * @param proApply
	 * @return com.xing.crm.model.ProApply
	 * */
	ProApply checked(ProApply proApply);
	
	/**
	 * 功能描述: 提交申请

	 * @date 2021/8/9 17:51
	 * @param proApply
	 * @return int
	 * */
	int submitApply(ProApply proApply);

	/**
	 * 功能描述: 同意申请

	 * @date 2021/8/11 15:52
	 * @param proApply
	 * @return int
	 * */
	int agreeApply(ProApply proApply);
	
	/**
	 * 功能描述: 删除申请记录

	 * @date 2021/8/11 15:52
	 * @param proApply
	 * @return int
	 * */
	int deleteApply(ProApply proApply);
	
	/**
	 * 功能描述: 

	 * @date 2021/8/11 15:52
	 * @param id
	 * @return com.xing.crm.model.ProApply
	 * */
	ProApply get(String id);
}
